package com.hkpw.system.domain.vo;

import com.alibaba.fastjson2.JSONObject;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Auther: lenovo
 * @Date: 2022/9/27 17:24
 * @Description: DoorEventResult
 * @Version 1.0.0
 */
@Data
public class DoorEventResult implements Serializable {

    private String method;

    private DoorEventResultParams params;

    @Data
    public static class DoorEventResultParams implements Serializable {

        private String ability;

        private String sendTime;

        /**
         * 事件列表
         */
        private List<DoorEventResultEvent> events;

        @Data
        public static class DoorEventResultEvent implements Serializable {

            /**
             * "eventId":"f2e422eb152cebf83384694306929e1a",
             * "eventType":198919,
             * "happenTime":"2022-09-28T08:39:34.000+08:00",
             * "srcIndex":"3accdd7c3e9f425ebdfee0834f2568ae",
             * "srcName":"滨河园区1号楼_门_1",
             * "srcParentIndex":"dc444a35fac44248ac075717901a0dc8",
             * "srcType":"door",
             * "status":0,
             * "timeout":0
             */

            private String eventId;

            private Integer eventType;

            private String happenTime;

            private String srcIndex;

            private String srcName;

            private String srcParentIndex;

            private String srcType;

            private Long status;

            private Long timeout;

            private JSONObject data;


        }
    }
}
